﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProductTool.Entity
{
    public class ItemEntity
    {
        public Int64 goods_id { get; set; }
        public int item_id { get; set; }
        public string item_number { get; set; }
        public int item_type { get; set; } = 1;
        public int business_type { get; set; } = 1;
        public string unit { get; set; } = "g";
        public int seller_id { get; set; } = 0;
        public string goods_sn { get; set; }

        public string goods_name { get; set; }
        public string manufacturer_part_number { get; set; }
        public int category_id { get; set; }

        public ItemExtentionEntity itemExtentionEntity { get; set; } = new ItemExtentionEntity();

        public PM[] pmList { get; set; }
        public string weight { get; set; } = "1";
        public int pieces_per_pack { get; set; } = 1;

        public decimal last_cost { get; set; }= 1;

        public Upc[] item_upcs { get; set; }

        public string upc_code { get; set; }

        public ItemShortDesc[] itemShortDescList { get; set; }

        public string in_user { get; set; } = "freegod";

        public ItemDesc[] itemDescList { get; set; }
        /// <summary>
        /// 出版社
        /// </summary>
        public int brand_id { get; set; }

        public int vendor_id { get; set; } = 0;//默认jd

        public ItemImage[] itemImageList { get; set; }

        public ImItemPriceSetting[] itemPriceList { get; set; }
        public PropertyInfo[] itemPropertyList { get; set; }

    }
    public class PropertyInfo {
        public Property property { get; set; }

        public string user_input { get; set; }
        public string user_input_eng { get; set; }        
    }
    public class Property
    {
        public int category_id { get; set; }
        public int property_id { get; set; }
        public string property_name_eng { get; set; }
        public string property_value_type { get; set; }
        public string property_name { get; internal set; }

    }

    public class PropertyValue{
        public int property_value_id { get; set; }
        public int property_id { get; set; }
        public string property_value { get; set; }

    }

    public class ItemPropValue
    {       
        public string item_number { get; set; }

        public string goods_sn { get; set; }

        public int property_id { get; set; }

        public int property_value_id { get; set; }

        public string user_input { get; set; }

        public string user_input_eng { get; set; }

    }
    public class ItemExtentionEntity {
        public int minimal_exp { get; set; } = 360;
        public int piece_pack { get; set; } = 1;
    }
    public class PM
    {
        public string status { get; set; } = "A";
        public int rec_id { get; set; }
        public string pm_name { get; set; }
        public int pm_id { get; set; }
    }
    public class Upc
    {
        public string upc { get; set; }
        public int is_unique { get; set; } = 1;

        public int is_delete { get; set; } = 0;
    }
    public class ItemShortDesc
    {
        public string language_id { get; set; } = "zh_CN";
        public string title { get; set; }
    }

    public class ItemDesc {
        public string language_id { get; set; }= "zh_CN";
        public string overview { get; set; }
    }

    public class ItemImage {
        public string image_name { get; set; }
        public int priority { get; set; } = 0;

        public string status { get; set; } = "A";

        public int type { get; set; } = 1;
    }

    public class ImItemPriceSetting
    {
        public decimal unit_price { get; set; }

        public string platform_code { get; set; } = "B2C";

        public string channel_code { get; set; } = "Computer";

        public string status { get; set; } = "A";
    }
}
